package com.rxm.ys.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author FengYi
 * @Date 2020-05-06 16:59
 */
@RestController
public class UserController {

    @GetMapping("/print/{name}")
    public Object get(@PathVariable("name") String name){
        System.out.println(String.format("Print: %s", name));
        return String.format("You name is %s", name);
    }
}
